<!DOCTYPE html>
<html>
<head>
<base href="{$site_url}/" />
<!-- Use IE7 mode -->
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>调箱平台-要箱-{if $s} {$s.sname} {else}无效的船公司 {/if}</title>
<meta name="description" content="普捷通" />
<meta name="keywords" content="普捷通|要箱|集港|疏港" />
<script type="text/javascript">
	//<!CDATA[
	var SITE_URL = "{$site_url}";
	var REAL_SITE_URL = "{$real_site_url}";
	var PRICE_FORMAT = '{$price_format}';
	//
</script>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link href="{res file=css/base.css}" rel="stylesheet" type="text/css" />
<link href="{res file=css/index.css}" rel="stylesheet" type="text/css" />
<link href="{res file=css/jquery.datetimepicker.css}" rel="stylesheet"
	type="text/css" />
<script type="text/javascript" src="index.php?act=jslang"></script>
<script type="text/javascript" src="{lib file=jquery-1.8.3.min.js}"
	charset="utf-8"></script>
<script type="text/javascript" src="{lib file=base.js}" charset="utf-8"></script>
<script type="text/javascript"
	src="{lib file=jquery.datetimepicker.full.js}" charset="utf-8"></script>
<!--[if lt IE 10]>
<script type="text/javascript" src="{lib file=PIE.js}"></script>
<script src="{lib file=html5.js}"></script>
<script src="{lib file=css3-mediaqueries.js}"></script>
<style>
.labalfor txt{left: 0px;top:-2px}
</style>
<![endif]-->
<script type="text/javascript">
	$(function() {
		if (window.PIE) {
			$('.rounded').each(function() {
				PIE.attach(this);
			});
		}

		$("#btn-go").click(function(){
			window.location.href="/index.php?app=plan";
		});
		
		$('#USE_DD').datetimepicker({value:"{$d|date:Y/m/d H:00}",step:10,lang:'ch'});
		$('#EUSE_DD').datetimepicker({value:"{$d7|date:Y/m/d H:00}",step:10,lang:'ch'});
		
		$("#sname").keydown(function(e){
			if(e.which==13){
				$("#sname").blur();
			}
		});
		
		$("#sname").focus(function(){
			$(this).val("");
		}).blur(function(){
			var o=$(this).attr("o");
			var t=$(this).val();
			if(t!=""){
				$.ajax({
					type: 'post',
					url: "/index.php?app=sl&act=getsl",
					contentType: "application/x-www-form-urlencoded; charset=utf-8",
					data: {t:t},
					cache:false,
					error: function () {
						$("#sname").val(o);
					},
					success: function (response) {
						if (response>0) {
							window.location.href="/index.php?app=sl&act=ys&id="+response;
	
						}else{
							$("#sname").val(o);
						}
					}
				});
			}else{
				$(this).val(o);
			}
			
		});
	});
</script>
{$_head_tags}

<style>
.ysleft {
	    width: 377px;
    height: 377px;
    border: 1px solid #cccccc;
    margin: 30px 50px 50px 20px;
    text-align: center;
    line-height: 347px;
    overflow: hidden;
}

.ysleft img {
	height: 114px;
	width: 114px
}

.ysright {
	width: 610px;
	margin: 40px 0 40px 0;
	font-size: 14px;
	color: #999
}

.ysright h1 {
	font-weight: bold;
	color: #333;
	font-size: 22px;
	margin-bottom: 20px
}

.labal {
	width: 100px;
}

.labalrow {
	height: 51px;
	line-height: 51px
}

.labalfor {
	margin-top: 10px
}

.labalfor li {
	float: left;
	width: 80px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	border: 1px solid #ccc;
	margin-right: 10px;
	cursor: pointer;
	margin-bottom: 10px;
}

.btn-register {
	width: 200px;
	height: 54px;
	color: #fff;
	background: #3e7fc2;
	border: 0;
	font-size: 16px;
	font-family: "Microsoft YaHei", "Hiragino Sans GB";
	cursor: pointer;
}
.form-item-error {
	border: solid 1px #e22 !important;
}

</style>
</head>
<body>
	<div id="syss" class="syss rounded">操作成功</div>
	<div id="syse" class="syse rounded">操作失败</div>
	<div class="topbar">
		<div class="w">
			<div class="fr">
				<!--{if !$visitor.user_id}-->
				<a href="{url app=member&act=login&ret_url=$ret_url}"
					style="color: #C81623">请登录</a>
				<div class="spacer"></div>
				<a href="{url app=member&act=register&ret_url=$ret_url}">免费注册</a>
				<!--{else}-->

				欢迎您登陆!&nbsp;&nbsp;{$visitor.real_name|escape}
				
				<div class="spacer"></div>
				<a href="{url app=member&act=setpwd}">修改密码</a>
				<div class="spacer"></div>
				<a href="{url app=member&act=logout}">{$lang.logout}</a>
				<!--{/if}-->
			</div>

			<div class="cl"></div>
		</div>
	</div>
	<div style="position: relative;" class="submain">
		<div class="w">
			<div id="logoindex" class="fl">
				<a href="index.php"><img
					src="themes/mall/default/styles/default/images/logo1.png"> </a>
			</div>
			<ul class="navbar fr" style="position: relative;">
				<li><a href="index.php"><p>首页</p> </a></li>
				<li><a class="on" href="index.php?app=sl&act=ofast"><p>集运</p> </a></li>
				<li><a href="javascript:;"><p>堆场</p> </a></li>
				<li><a href="javascript:;"><p>报关</p> </a></li>
				<li><a href="javascript:;"><p>促销专区</p> </a></li>
			</ul>
			<div class="cl"></div>
		</div>
		<div class="cl"></div>
	</div>
	<div class="w">
		<form action="" id="ys-form" method="get">
			<input type="hidden" name="app" value="sl" /> 
			<input type="hidden" name="act" value="yd" /> 
			<input type="hidden" name="id" value="{$s.sid}" /> 
			<input type="hidden" name="CUS_NO" value="{$s.code}" /> 
			
			<input type="hidden" name="XX" id="XX" value="{$tt}"/> 
				{if $s}
			<div class="fl ysleft">
				<img src="{$site_url}/{$s.logoimg}" onerror="this.src='n.png'" />
			</div>

			<div class="fl ysright">
				<h1><input type="text" value="{$s.sname}" id="sname" o="{$s.sname}" style="font-weight: bold;
    color: #333;
    font-size: 22px;
    margin-bottom: 20px; font-family: 微软雅黑;border:0;    width: 600px;" placeholder="输入编码切换船公司"></h1>
				{if $type}
				<div class="">
					<div class="fl labal">箱型：</div>
					<div class="fl labalfor" style="width: 490px;margin-top: 0px">
						<ul>
							{foreach from=$type item=t name=i}
							<li id="t_{$t.d_tid}" v="{$t.d_value}"
								class="{if $smarty.foreach.i.first}on{/if}">{$t.d_value}</li>
							{/foreach}
						</ul>
					</div>
				</div>
				<div class="cl"></div>
				{/if}
				<div class="labalrow">
					<div class="fl labal">箱量：</div>
					<div class="fl labalfor">
						<div class="minus fl" id="minus"></div>
						<input type="text" name="QTY" id="QTY" class="fl QTY" value="1" />
						<div class="plus fl" id="plus"></div>
					</div>

				</div>
				<div class="labalrow">
					<div class="fl labal">船名：</div>
					<div class="fl labalfor">
						<input type="text" name="SHIP_OVOY" id="SHIP_OVOY"
							class="fl SHIP_OVOY" placeholder="请输入船名" />
					</div>
					<div class="fl labal" style="margin-left: 30px">航次：</div>
					<div class="fl labalfor">
						<input type="text" name="OVOY" id="OVOY" class="fl SHIP_OVOY"
							placeholder="请输入航次" />
					</div>
				</div>
				<div class="labalrow">
					<div class="fl labal">提单号：</div>
					<div class="fl labalfor">
						<input type="text" name="TD_NO" id="TD_NO" class="fl REM"
							placeholder="请输入提单号" />
					</div>
				</div>
				<div class="labalrow">
					<div class="fl labal">用箱时间起：</div>
					<div class="fl labalfor">
						<input type="text" name="USE_DD" id="USE_DD" class="fl SHIP_OVOY" />
						<a href="javascript:;" onclick="javascript:$('#USE_DD1').datetimepicker('show');return false;"
							class="timechoose"></a>
					</div>
					<div class="fl labal" style="margin-left: 30px">用箱时间止：</div>
					<div class="fl labalfor" style="position: relative;">
						<input type="text" name="EUSE_DD" id="EUSE_DD" class="fl SHIP_OVOY" />
						<a href="javascript:;" onclick="javascript:$('#EUSE_DD').datetimepicker('show');return false;"
							class="timechoose"></a>
					</div>
				</div>
				<div class="labalrow">
					<div class="fl labal">甩挂位置：</div>
					<div class="fl labalfor">
						<input type="text" name="P_ADD" id="P_ADD" class="fl REM"
							placeholder="请输入甩挂位置" />
					</div>
				</div>
				<div class="labalrow">
					<div class="fl labal">备注：</div>
					<div class="fl labalfor">
						<input type="text" name="REM" id="REM" class="fl REM"
							placeholder="请输入备注" />
					</div>
				</div>

				<div class="labalrow">
					<div class="fl labal"></div>
					<div class="fl labalfor">
						<button type="button" class="btn-register" id="btn-submit">加入要箱</button>
						
						<a href="/index.php?app=plan" style="color: #ff6600;font-size: 16px;margin-left: 20px">我的要箱计划</a>
					</div>
				</div>
			</div>
			{else}
			<div class="datanone">
				<img src="n.png" / width="136">
				<p>无效的船公司</p>
			</div>
			{/if}
		</form>
		<div class="cl"></div>
	</div>
	<div class="line_item"></div>
	<div class="w yscontent">
		<h1>{$s.sname}</h1>
		<div style="line-height: 25px">{$s.description}</div>
	</div>
	<div class="w">
		<div id="footer-2013" style="margin-top: 50px">

			<div class="copyright">
				Copyright&copy;2004-2020&nbsp;&nbsp;普捷通&nbsp;版权所有</div>
				<div style="width:300px;margin:0 auto;">
		 		<a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=31011502002931" style="display:inline-block;text-decoration:none;height:20px;line-height:20px;"><img src="/themes/mall/default/ba.png" style="float:left;"/><p style="float:left;height:20px;line-height:20px;margin: 0px 0px 0px 5px; color:#939393;">沪公网安备 31011502002931号</p></a>
		 	</div>
		</div>
	</div>
	<script type="text/javascript">
		seajs.use('/includes/libraries/javascript/ys.js', function(ys) {
			ys.init();
		});
	</script>
</body>
</html>